$(document).ready(
		function() {

			$('section ul li').click(
					function() {
						var cmd = $(this).attr("data-cmd");
						$.post(
								"CommandServlet",
								{
									'command' : cmd
								},
								function(xhr) {
									$('#infoBox').html(xhr).stop(true, true)
											.fadeIn(500).delay(1000).fadeOut(
													500, function() {
													});
								}).done(function() {
						}).fail(
								function(xhr, textStatus, errorThrown) {
									$('#errorBox').html(xhr.responseText).stop(
											true, true).fadeIn(500).delay(5000)
											.fadeOut(500, function() {
											});
								}).always(function() {

						});
					});

		});
